package com.work.biz.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.work.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 教师对象 biz_teacher
 * 
 * @author  lee
 * @date 2021-04-22
 */
@ApiModel
public class BizTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教师id */
    private Long teacherId;

    /** 班级id */
    @NotNull(message = "班级ID不能为空")
    @ApiModelProperty(required = true, value = "班级ID")
    private Long classId;

    /** 用户ID */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(required = true, value = "用户ID")
    private Long userId;

    /** 教师姓名 */
    @NotBlank(message = "教师姓名不能为空")
    @ApiModelProperty(required = true, value = "教师姓名")
    private String teacherName;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTeacherName(String teacherName) 
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName() 
    {
        return teacherName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("teacherId", getTeacherId())
            .append("classId", getClassId())
            .append("userId", getUserId())
            .append("teacherName", getTeacherName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
